package top.yaofengqiao.springcloudsimple.common.constant;

/**
 * @author yfq
 * @date 2024/6/6 16:37
 * @description
 */
public class AuthConstant {
    public static final String BEARER = "Bearer";
    public static final String AUTHORIZATION = "Authorization";
    // accessToken过期时间
    public static final int ACCESS_TOKEN_EXPIRE = 30;
    // refreshToken过期时间
    public static final int REFRESH_TOKEN_EXPIRE = 60 * 24 * 7;


    public static class RedisConstant {
        public static final String AUTH_TOKENS_PREFIX = "auth_tokens:";

    }
}
